package com.example.vspm.service.impl;

import com.example.vspm.entity.SendTable;
import com.example.vspm.mapper.PersonMapper;
import com.example.vspm.mapper.SendTableMapper;
import com.example.vspm.service.SendTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class SendTableServiceImpl implements SendTableService {

    @Autowired
    SendTableMapper sendTableMapper;


    @Override
    public void addSendTable(SendTable sendTable) {
         sendTableMapper.addSendTable(sendTable);
    }

    @Override
    public void updatePersonnelStatus(String personnelStatus, int tid,int pid3) {
         sendTableMapper.updatePersonnelStatus(personnelStatus,tid,pid3);
    }

    @Override
    public void updateScore(float score, int taid) {
        sendTableMapper.updateScore(score,taid);
    }

    @Override
    public int getPid3(int taid) {
        return sendTableMapper.getPid3(taid);
    }
}
